package com.chinasofti.str;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public class Demo01 {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String s = "中国";

        byte[] bys = s.getBytes("GBK");//[-42, -48, -71, -6]
        System.out.println(Arrays.toString(bys));

        String ss = new String(bys,"UTF-8");//�й�
        System.out.println(ss);

    }
}
